package com.kingint.web.vo;


import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:/order/roomclean.properties"},encoding = "utf-8")
@ConfigurationProperties(prefix = "roomclean")
@Data
public class RoomCleanBean implements InitializingBean {

    private String processInstanceKey;
    private String createName;
    private String acceptName;
    private String acceptNameEl;
    private String checkName;
    private String checkNameEl;
    private String checkStatus;
    private String rejectStatus;


    //公开静态变量
    public static String PROCESSINSTANCEKEY;
    public static String CREATENAME;
    public static String ACCEPTNAME;
    public static String ACCEPTNAMEEL;
    public static String CHECKNAME;
    public static String CHECKNAMEEL;
    public static String CHECKSTATUS;
    public static String REJECTSTATUS;

    @Override
    public void afterPropertiesSet() throws Exception {
        PROCESSINSTANCEKEY = processInstanceKey;
        CREATENAME = createName;
        ACCEPTNAME = acceptName;
        ACCEPTNAMEEL = acceptNameEl;
        CHECKNAME = checkName;
        CHECKNAMEEL = checkNameEl;
        CHECKSTATUS = checkStatus;
        REJECTSTATUS = rejectStatus;
    }
}
